package com.star.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author Star
 * @since 2021-04-21
 */
@TableName("tb_menu_type")
public class MenuType extends Model<MenuType> {

    private static final long serialVersionUID = 1L;

    /**
     * 菜品类型编号
     */
    @TableId(value = "menu_Type_id", type = IdType.AUTO)
    private Integer menuTypeId;
    /**
     * 菜品类型名称
     */
    @TableField("menu_Type_name")
    private String menuTypeName;


    public Integer getMenuTypeId() {
        return menuTypeId;
    }

    public void setMenuTypeId(Integer menuTypeId) {
        this.menuTypeId = menuTypeId;
    }

    public String getMenuTypeName() {
        return menuTypeName;
    }

    public void setMenuTypeName(String menuTypeName) {
        this.menuTypeName = menuTypeName;
    }

    @Override
    protected Serializable pkVal() {
        return this.menuTypeId;
    }

    @Override
    public String toString() {
        return "MenuType{" +
        ", menuTypeId=" + menuTypeId +
        ", menuTypeName=" + menuTypeName +
        "}";
    }
}
